package com.cy.pj.sys.service.Impl;

import com.cy.pj.common.pojo.JsonResult;
import com.cy.pj.sys.Dao.SysMenuDao;
import com.cy.pj.sys.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysMenuServiceImpl implements SysMenuService {

    @Autowired
    private SysMenuDao sysMenuDao;

    @Override
    public List<Map<String, Object>> doFindMenu() {
        List<Map<String, Object>> list = sysMenuDao.doFindMenu();
        return list;
    }

    @Override
    public int doDeleteMenu(Integer id) {
        int i = sysMenuDao.doDeleteMenu(id);
        return i;
    }


    @Override
    public int doUpdateMenu(JsonResult result) {
        int i = sysMenuDao.doUpdateMenu(result);
        return i;
    }

    @Override
    public int doInsertMenu(JsonResult result) {
        int i = sysMenuDao.insertBrand(result);
        return i;
    }

}
